package dcq;


import org.gdal.gdal.gdal;
import org.gdal.ogr.ogr;

//测试案例
class GDALDemo {
    //获取所有驱动的名称并打印
    public void printDriver() {
        gdal.AllRegister();
        int count = ogr.GetDriverCount();
        for (int i = 0; i < count; i++) {
            String driverName = ogr.GetDriver(i).getName();
            System.out.print(driverName + "\n");
        }
        gdal.GDALDestroyDriverManager();
    }

    public static void main(String[] args) {
        GDALDemo demo = new GDALDemo();
        demo.printDriver();
    }
}
